Skip to content

Update crawl_webpage.py#1815

Closed
newinnate wants to merge 1 commit intoFoundationAgents:mainfrom
newinnate:patch-1
Closed

Update crawl_webpage.py#1815
newinnate wants to merge 1 commit intoFoundationAgents:mainfrom
newinnate:patch-1

Conversation

@newinnate
Copy link

The 'view_page_ element_to-scrape' function does not exist. This function has been refactored in MetaGPT v0.7+version, and web crawling related functions have been integrated into the scrape_web_playwright tool

##Function Change Record (Updated in 2025)
###Original function: view_page_element_to_scrape
**Last valid version * *: v0.6.3
**Function * *: Web page element visualization inspection tool
**Reason for abandonment * *: Function integration into Playwright toolchain

# old version(v0.6-)
from metagpt.tools.libs.web_scraping import view_page_element_to_scrape

# new version(v0.7+)
from metagpt.tools import scrape_web_playwright

# old define
async def main():
    di = DataInterpreter(tools=[tools=[view_page_element_to_scrape.__name__]])  

# new define
async def main():
    di = DataInterpreter(tools=["scrape_web_playwright"])  

The 'view_page_ element_to-scrape' function does not exist. This function has been refactored in MetaGPT v0.7+version,  and web crawling related functions have been integrated into the scrape_web_playwright tool
@newinnate newinnate closed this by deleting the head repository Jun 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant